System and method for analyzing and tuning a marketing program

ABSTRACT

A method for permitting a program to be analyzed and tuned includes the steps of receiving a program which itself includes a plurality of stages, where execution of the program follows a plurality of distinct paths, each of the distinct paths including one or more of the stages. The method further includes determining unique paths of the program and determining execution boundaries of the program. In addition, the method includes persisting the unique paths and the execution boundaries in a database, and changing an execution of the program based on the persisted unique paths and execution boundaries.

BACKGROUND

1. Field of the Invention

The present invention relates to the field of business process management, and, in particular, to a system and method for analyzing and tuning a marketing program.

2. Description of the Related Art

A business process management (BPM) engine, or workflow engine, can be used to design and implement business execution actions, such as marketing campaigns, compensation calculation models, and supply chain management. In the marketing campaign example, a marketer can use the BPM engine to configure a series of connected workflow execution components that make up a marketing campaign. Some BPM engines allow the marketer to visually design, manage, and automate a multi-stage lifecycle marketing program through a drag-and-drop user interface and a library of pre-built program templates. An example of such a BPM engine is Responsys Interact Program, an element of the Responsys Interact Marketing Cloud.

However, existing BPM engines are not aware of how stages of a marketing program are connected or of thread execution boundaries within the marketing program. In particular, the program stages do not know how they are related to each other (e.g., whether the stages are connected, how many paths there are between the stages, whether the stages are within the same execution boundary, how many incoming or outgoing paths there are for a stage, etc.), and the BPM also does not know how many different/unique paths are in the program (e.g., the number of paths a group of workflow items can traverse in the program, the number of different paths between a given start stage and end stage, etc.). As a result, such engines cannot, e.g., efficiently identify groups of workflow items input to a given stage within the same thread. For example, two or more groups of workflow items (e.g., users) may be processed along parallel paths to create distinct email messages for each group, and separate requests for launch of an email campaign may then be made after each group is processed. In such a case, multiple requests for and launches of the email campaign may be made within the same execution flow, unnecessarily burdening servers that must consume computing resources such as memory and processing cycles for each of the separate launches.

SUMMARY

One embodiment disclosed herein provides a technique for permitting a program to be analyzed and tuned. The technique generally includes the steps of receiving a program which itself includes a plurality of stages, where execution of the program follows a plurality of distinct paths, each of the distinct paths including one or more of the stages. The technique further includes determining unique paths of the program and determining execution boundaries of the program. In addition, the technique includes persisting the unique paths and the execution boundaries in a database, and changing an execution of the program based on the persisted unique paths and execution boundaries.

Further embodiments of the present invention include a computer system configured to carry out the above technique, or a non-transitory computer-readable storage medium comprising instructions that cause the computer system to carry out the above technique.

BRIEF DESCRIPTION OF THE DRAWINGS

So that the manner in which the above recited features of the invention can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to embodiments, some of which are illustrated in the appended drawings. It is to be noted, however, that the appended drawings illustrate only typical embodiments of this invention and are therefore not to be considered limiting of its scope, for the invention may admit to other equally effective embodiments.

FIG. 1 illustrates a networked computer environment in which embodiments of the invention may be practiced.

FIG. 2A is a conceptual diagram of a marketing program.

FIG. 2B illustrates a directional graph which represents the marketing program of FIG. 2A and thread boundaries of the marketing program, according to one embodiment.

FIG. 3 illustrates a method for determining unique paths and thread boundaries in a marketing program and persisting the same in a database, according to one embodiment of the invention.

FIG. 4 illustrates a method for conserving computational resources using program path and thread boundary information, according to one embodiment of the invention.

DETAILED DESCRIPTION OF EXEMPLARY EMBODIMENTS

Embodiments disclosed herein provide techniques for analyzing and tuning a marketing program. According to an embodiment, a marketing program including a plurality of stages, and in which execution of the program follows a plurality of distinct paths, is represented as a graph, and unique paths of the program are determined by traversing the graph. Further, execution boundaries of the program which correspond to distinct process threads are determined by identifying stages which begin new execution boundaries. A database may be used to store and manage information on the determined program paths and execution boundaries, and the information itself may be used to analyze and tune the marketing program.

Hardware Overview

FIG. 1 illustrates a networked computer environment in which embodiments may be practiced. As shown, the networked computer environment includes a plurality of client computers 110 (only two of which are shown) and a plurality of server computers 120 with associated content databases 125 for storing content. The client computers 110 and the server computers 120 are connected over a network 150, e.g., the Internet.

Each client computer 110 includes conventional components of a computing device, e.g., a processor, system memory, a hard disk drive, input devices such as a mouse and a keyboard, and output devices such as a monitor, among others. Each server 120 includes a processor 122 and a system memory 124, and manages the contents stored in its respective content storage unit using, e.g., a relational database. The servers 120 may be programmed to communicate with the client computers 110 and other servers using the TCP/IP protocol. The client computers 110 are programmed to execute web browser programs and other software applications and access the web pages and/or applications managed by the servers by specifying a uniform resource locator (URL) for the server into the web browser.

In embodiments described below, users are respectively operating the client computers 110 that are connected to the servers 120 over the Internet. The web pages that are displayed to a user are transmitted from the servers 120 to that user's client computer 110 and processed by the web browser program stored in that user's client computer 110 for display through the monitor of that user's client computer 110.

Client computer 110 may be a personal computer, smart phone, touch pad, touch screen, or any other device suitable for practicing one or more embodiments of the present invention. It should be noted that the present invention can be implemented in hardware, software, or in a combination of hardware and software, e.g., using application specific integrated circuits (ASIC), a general purpose computer or any other hardware equivalents.

In one embodiment, a BPM engine may be stored in memory of the client computer 110 and executed by the processor within the client computer. In other embodiments, the BPM engine may be stored in the memory 124 of the server 120 and executed by the processor 122. The server 120 may be configured to deliver a user interface to the user at the client computer 110 via the network 150. For example, the user interface may be displayed in a web browser executed by the client computer 110.

Program Graph and Execution Boundaries

As described, embodiments disclosed herein provide techniques for analyzing and tuning a marketing program. According to an embodiment, a marketing program including a plurality of stages, and in which execution of the program follows a plurality of distinct paths, is represented as a graph, and unique paths of the program are determined by traversing the graph. Further, execution boundaries of the program which correspond to distinct process threads are determined by identifying stages which begin new execution boundaries. A database may be used to store and manage information on the determined program paths and execution boundaries, and the information itself may be used to analyze and tune the marketing program.

FIG. 2A is a conceptual diagram of a marketing program 200. In one embodiment, a BPM engine, such as Responsys Interact Program, allows a user to visually design, manage, and automate a multi-stage lifecycle program through a drag-and-drop user interface and a library of pre-built program templates. The example shown in FIG. 2 illustrates a marketing program 200 designed by a marketer.

As shown, the marketing program 200 begins with stage 210, which is a scheduled filter stage. In one embodiment, a stage is an abstract class that represents a component within the marketing program 200. Other examples of stages include an email campaign stage, an SMS (short message service) campaign stage, an elapsed timer stage, a gateway (or “switch”) stage, or any other technically feasible type of stage. In some embodiments, different business logic may be associated with each of the different types of stages. As used herein, a “scheduled filter” refers to a stage in which a filter or a stored query (e.g., a saved SQL view) is run against an associated list once or on a recurring schedule (daily, weekly or monthly), with resulting matching customers being fed into the marketing program.

The input to the scheduled filter stage 210 comprises a plurality of work items, also referred to as “process instances” or “enactments.” In the example shown in FIG. 2A, each work item may represent a different user to which marketing content may be targeted. In one embodiment, at the scheduled filter stage 210, work items (i.e., users) in the input group of work items are filtered according to a predefined condition or conditions. For example, the scheduled filter 210 may be configured to run every day at midnight to filter users and return a list of users whose birthday is on that day.

As shown, stage 212 is a data switch stage which splits an input group of work items into three groups according to a data switch condition. Illustratively, the input group is split according to geography data associated with the input work items, with California residents, New York residents, and residents of other states being split into three separate groups that are processed in respective paths. Then, at stages 214 ₁₋₃, the groups are processed by setting data of email messages targeted to those groups. For example, California residents, New York residents, and residents of other states may each receive different promotional offers, and the BPM engine may set data in the email messages targeted to each group to indicate the appropriate promotional offer.

Stage 216 is an email campaign stage in which the BPM engine sends email messages to work items in input group(s). Illustratively, a request to launch the appropriate email campaign is made after each of the data setting stages 214 ₁₋₃ is executed. In response, multiple launches may be made, and server resources such as memory and processing cycles may be separately consumed for each launch, which unduly burdens the server. For example, if three launches are performed, three launch requests may be made, information (i.e. first name, last name, address etc. for each user in the group) may be retrieved three times from the database, scrubbing (e.g., removing duplicate user records based on email address, suppressing user records based on invalid email domains, suppressing users who appear on a global suppression list, etc.) may be performed three times, and an initial setup process may also be executed three times. Other miscellaneous activities such as schedulers, data base activity, caching, I/O are also not minimized where three launches are made rather than a single launch.

In one embodiment, the BPM engine may determine, using program path and execution boundary information, whether the scheduled filter 210 and the email campaign 216 stages are connected by more than one path and if these stages execute in the same thread boundary, with a “thread boundary” including one or more stages which are executed by the same thread on, e.g., a distinct server computer. If such is the case, the BPM engine may wait for all set data stages 214 ₁₋₃ to finish executing, merge the multiple groups of work items output by these paths into a single merged group, and launch a single email campaign for the merged group, thereby conserving server resources.

FIG. 2B illustrates a graph 250 which represents the marketing program 200 of FIG. 2A and thread boundaries of the marketing program 200, according to one embodiment. As shown, the graph 250 is a directional graph which includes nodes 260 _(i) and 270 _(i), each of which corresponds to one of the stages of the marketing program 200. That is, the graph 250 may be generated from the marketing program 200 by creating one graph node for each stage in the program 200 and connecting the nodes according to the execution flow of the program 200. As discussed in greater detail below, the graph 250 may then be traversed to identify unique paths through the marketing program 200, and the unique paths may be normalized and persisted in a database for later analysis and program tuning. For example, unique paths through the marketing program 200 include (1) A→D→B→C→I; (2) A→D→F→G→I; (3) A→D→J→G→I; and (4) K→G→I.

As shown, shaded nodes 260 _(i) represent thread creator stages (also referred to herein as thread boundary creator stages), while unshaded nodes 270 _(i) represent thread follower stages. In one embodiment, thread creator stages may be stages which start new execution (thread) flows. Illustratively, thread creator stages represented by nodes A, G, and K start threads 1, 2, and 3, respectively. Each such thread may itself include one or more stages and be executed on, e.g., a separate server computer. Note, while nodes A, G, and K represent thread creator stages, the boundaries of threads are defined by the pairs A-G, K-G, and G-I. For example, A and G are within the same thread boundary, as they define the boundary of thread 1.

Stages which execute in a thread but do not start the thread are thread follower stages, represented by unshaded nodes 270 _(i). Such thread follower stages are generally not self-initiated, and are instead initiated by a thread creator stage or another thread follower stage. Thread creator and thread follower stages may generally be distinguished based on characteristics of the stages. In one embodiment, a user may specify certain types of stages as thread creator stages and other types of stages as thread follower stages. Examples of thread creator stages may include start event stages for customer activation, customer deactivation, scheduled filters, and custom events; timer stages such as elapse timers, target timers, and end timers; and campaign activity stages such as email campaigns, SMS campaigns, and other forms of communications to customers. An example of a thread follower stage is a set data stage. Other examples of thread follower stages may include switch stages for selecting between alternatives, such as data switches, allocation switches, and performance switches. As used herein, a customer activation stage refers to a stage in which a new customer/user is added into the system, or a previously deactivated user is re-activated, using, e.g., email, mobile, social, display or web channels. Deactivation may generally be the opposite of activation. As used herein, a set data stage refers to a stage in which a list field or profile extension field is either set to a given value, or the value is modified by a specified amount or changed to a value that is supplied by an event. A marketer may be allowed to choose one of these approaches and the field value to set. As used herein a send email campaign stage refers to a stage in which email campaign messages are sent to customers. As used herein, a timer is a stage which waits for a specified amount of time or until a specific date/time. For example, a timer may be included in a marketing campaign to allow customers to respond to the campaign before sending follow-up messages. An elapsed timer in particular may wait for a specified number of days before moving to the next program stage. As used herein, an end event refers to a stage which terminates a program flow, exiting the program.

FIG. 3 illustrates a method 300 for determining unique paths and thread boundaries in a marketing program and persisting the same in a database, according to one embodiment. As shown, the method begins at step 310, where a BPM engine receives a marketing program which includes a plurality of stages. For example, the stages may include an email campaign stage, an SMS (short message service) campaign stage, an elapsed timer stage, a gateway (or “switch”) stage, or any other technically feasible type of stage. As discussed, the campaign stages may be specified by a user using the BPM engine which allows a user to visually design, manage, and automate a multi-stage lifecycle program through a drag-and-drop user interface and a library of pre-built program templates.

At step 320, the BPM engine generates a graph representation of the marketing program and calculates unique execution paths in the program. In one embodiment, the BPM engine may generate the graph by creating a node in the graph for each stage defined by the user (e.g., the marketer who created the marketing program), such that the marketing program is represented as a directional graph similar to that shown in FIG. 2B. After generating the directional graph, the BPM engine may traverse the graph to identify unique paths which work items may take through the marketing program. For example, the BPM engine may traverse the graph using a breadth-first search algorithm. In another embodiment, the BPM engine may generate the graph and calculate unique program execution paths upon the publishing of the program as an executable.

At step 330, the BPM engine determines thread boundaries in the marketing program. As discussed, each thread boundary may include one or more stages which are executed by the same thread on, e.g., a distinct server computer. In one embodiment, the thread boundaries may be determined by identifying nodes in the directed graph which represent stages that start new execution (thread) flows and are thus at the boundaries of threads. The types of nodes which are thread creators may be, e.g., user-specified. For example, thread boundary creator nodes may include start event nodes, timer nodes, and campaign activity nodes. Start event nodes may include nodes which represent customer activation, customer deactivation, scheduled filters, and customer events. Timers may include, e.g., elapsed timers, target timers, and end timers. Campaign activities may include email campaigns, SMS campaigns, and other forms of communications to customers. In contrast to thread-creating nodes, the user may also define thread follower nodes which represent stages that do not start new threads. As discussed, thread follower stages are generally not self-initiated, and are instead initiated by a thread creator stage or another thread follower stage. Examples of thread follower nodes may include setting date and switches such as data switches, allocation switches, and performance switches.

At step 340, the BPM engine persists information on the program paths and thread boundaries in a database. In one embodiment, the program paths may be normalized using, e.g., a well-known database normalization technique. For example, information for the marketing program illustrated in FIG. 2 may be stored as follows:

TH_ PROGRAM_ BOUNDARY_ ID FROM_STAGE_ID TO_STAGE_ID ID 1001 A (Scheduled Filter X) D 1 1001 D B 1 1001 B C 1 1001 C G (Campaign) 1 1001 G (Email Campaign Y) I 2 1001 D F 1 1001 F G (Campaign) 1 1001 D J 1 1001 J G (Campaign) 1 1001 K (Customer Activated Z) G (Campaign) 3 Information saved in the database may be used in later analysis, such as to merge groups which have been processed by multiple paths connecting a filter stage and an email (or SMS) campaign stage in the same thread boundary, as discussed in greater detail below with respect to FIG. 4.

Other use cases include determining if a given filter stage and a given email (or SMS) campaign stage execute in the same thread, determining all in-paths to a given email (or SMS) campaign stage, determining all stages executed before a given email (or SMS) campaign stage, determining all in-paths to a given email (or SMS) campaign stage which execute in the same thread, determining whether two given stages are connected, finding the shortest or longest paths between two given stages by time or number of stages, etc. In each of these cases, a marketer (or other user) may be interested in how the marketing program is executed so that the marketing program, including the manner in which the program executes, may be manually or automatically redesigned (i.e., tuned) in various ways to better suit marketing needs and conserve system resources.

FIG. 4 illustrates a method 400 for conserving computational resources using program path and thread boundary information, according to one embodiment. As shown, the method 400 begins at step 410, where a BPM engine identifies filter and email or SMS campaign stages in a marketing program. As discussed, program paths, including stages in those paths, may be identified and persisted in a database. In such a case, the filter and email or SMS campaign stages may be identified by, e.g., querying the database to select the desired stages. In another embodiment, on deployment of the marketing program, or server start-up, the BPM may read all of the unique paths for the marketing program from the database and cache these paths for quick access. Then, on program execution, the BPM may access such a cache in lieu of the database.

At step 420, the BPM engine determines whether each pair of filter and campaign stages is connected by two or more paths and executes in the same thread boundary. Once again, the database in which program paths are persisted may be queried. For example, to determine whether filter stage X and email campaign stage Y are connected by two or more paths and are in the same thread boundary, the following SQL query may be executed:

SELECT COUNT(1)

FROM program_graph a, program_graph b

WHERE a.program_id=b.program_id

AND a.from_stage_id=‘X’

AND b.to_stage_id=‘Y’

AND a.from_stage_type=‘scheduled_filter’

AND b.stage_type=‘email_campaign’

AND a.th_boundary_id=b.th_boundary_id

At step 430, the BPM engine recursively processes paths between each pair of filter and campaign stages that is connected and that executes in the same thread boundary. Each path may itself include one or more stages, such as set data stages, which are executed when the path is processed.

At step 440, the BPM engine merges the processed groups at the campaign stage into one group. Then, at step 450, the BPM engine launches the campaign for the merged group. For example, in an email campaign stage, launching the campaign may include sending an email to each recipient in the merged group. As another example, in an SMS campaign stage, SMS messages may be sent synchronously one at a time to each recipient in the merged group. Merging the groups of work items and launching a single email campaign for the merged group conserves server resources such as memory, as resources are not then consumed for multiple separate launches.

Although discussed above primarily with respect to multi-stage lifecycle marketing programs, techniques disclosed herein may also be applied to other types of multi-stage programs.

Advantageously, techniques disclosed herein reduce computational resources required to execute a marketing program relative to prior art techniques by, e.g., permitting groups of workflow items input to a given stage within the same thread to be identified. Given such information, the marketing program may be manually, or automatically, analyzed and tuned to, e.g., merge groups before launching a single email or SMS campaign, among other things. This can be more efficient than executing the program blindly, without taking advantage of the particular paths of execution, connections between stages, execution boundaries, etc. Further, functionality and throughput of the system may not be affected by such analysis and tuning.

Various embodiments of the invention may be implemented as a program product for use with a computer system. The program(s) of the program product define functions of the embodiments (including the methods described herein) and can be contained on a variety of computer-readable storage media. Illustrative computer-readable storage media include, but are not limited to: (i) non-writable storage media (e.g., read-only memory devices within a computer such as CD-ROM disks readable by a CD-ROM drive, flash memory, ROM chips or any type of solid-state non-volatile semiconductor memory) on which information is permanently stored; and (ii) writable storage media (e.g., floppy disks within a diskette drive or hard-disk drive or any type of solid-state random-access semiconductor memory) on which alterable information is stored.

The invention has been described above with reference to specific embodiments and numerous specific details are set forth to provide a more thorough understanding of the invention. Persons skilled in the art, however, will understand that various modifications and changes may be made thereto without departing from the broader spirit and scope of the invention. The foregoing description and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense. 

What is claimed is:
 1. A method for tuning and executing a plurality of connected processes, the method comprising: identifying a plurality of stages of processing that are performed and consume computing resources including memory and processing cycles to transmit a plurality of electronic communications; reducing consumption of the computing resources to transmit the plurality of electronic communications at least by: identifying a first stage and a second stage within the plurality of stages of processing that are performed to transmit the plurality of electronic communications; identifying a plurality of distinct paths between the first stage and the second stage; determining that the plurality of distinct paths between the first stage and the second stage correspond to a thread boundary that identifies the first stage and the second stage within the plurality of distinct paths as being executable by a common thread on a server computer using the computing resources, the first stage being a filter stage, and the second stage being a campaign stage; merging outputs of the plurality of distinct paths between the first stage and the second stage into a merged group; persisting unique paths for the plurality of stages of processing and thread boundaries in a database on a database server; changing an execution of the plurality of stages at least by accessing at least some of the unique paths and the thread boundaries from a cache remote from the database server, instead of accessing the at least some of the unique paths and the thread boundaries from the database; determining that the filter stage, which filters input data to groups, and the campaign stage are connected by two or more paths within one of the thread boundaries, each of the two or more paths being used to process a respective group of the groups; in response to determining that the filter stage and the campaign stage in the plurality of stages of processing are connected by the two or more paths within the one of the thread boundaries: processing the groups in the two or more paths, merging the groups, which have been processed, into the merged group, and launching the campaign stage in a single launch for the merged group; and executing the single launch to transmit the plurality of electronic communications for the merged group.
 2. The method of claim 1, further comprising: determining the unique paths for the plurality of stages of processing; and determining the thread boundaries of the plurality of stages of processing.
 3. The method of claim 1, wherein the campaign stage is an e-mail campaign stage.
 4. The method of claim 1, wherein the campaign stage is a SMS (short message service) message campaign stage.
 5. The method of claim 1, wherein each of the thread boundaries begins with a thread creator stage, each thread creator stage being one of a start event stage, a timer stage, and a campaign activity stage.
 6. The method of claim 1, wherein the unique paths and the thread boundaries are persisted in a normalized form in the database.
 7. The method of claim 1, wherein changing the execution of the plurality of stages of processing further comprises at least one of determining all in-paths to the campaign stage using the database, determining the all in-paths to the campaign stage which execute within a same thread boundary using the database, determining stages of processing executed before the campaign stage using the database, determining whether two given stages of processing are connected using the database, and determining a shortest path by time or a number of stages of processing between the two given stages of processing using the database.
 8. A non-transitory computer-readable medium storing instructions that, when executed by a processor, cause a computer system to perform a set of acts for tuning and executing a plurality of stages of processing, the set of acts comprising: identifying a plurality of stages of processing that are performed and consume computing resources including memory and processing cycles to transmit a plurality of electronic communications; reducing consumption of the computing resources to transmit the plurality of electronic communications at least by: identifying a first stage and a second stage within the plurality of stages of processing that are performed to transmit the plurality of electronic communications; identifying a plurality of distinct paths between the first stage and the second stage; determining that the plurality of distinct paths between the first stage and the second stage correspond to a thread boundary that identifies the first stage and the second stage within the plurality of distinct paths as being executable by a common thread on a server computer using the computing resources, the first stage being a filter stage, and the second stage being a campaign stage; merging outputs of the plurality of distinct paths between the first stage and the second stage into a merged group; persisting unique paths for the plurality of stages of processing and thread boundaries in a database on a database server; changing an execution of the plurality of stages at least by accessing at least some of the unique paths and the thread boundaries from a cache remote from the database server, instead of accessing the at least some of the unique paths and the thread boundaries from the database; determining that the filter stage, which filters input data to groups, and the campaign stage are connected by two or more paths within one of the thread boundaries, each of the two or more paths being used to process a respective group of the groups; in response to determining that the filter stage and the campaign stage in the plurality of stages of processing are connected by the two or more paths within the one of the thread boundaries: processing the groups in the two or more paths, merging the groups, which have been processed, into the merged group, and launching the campaign stage in a single launch for the merged group; and executing the single launch to transmit the plurality of electronic communications for the merged group.
 9. The computer-readable medium of claim 8, the set of acts further comprising: determining the unique paths for the plurality of stages of processing; and determining the thread boundaries of the plurality of stages of processing.
 10. The computer-readable medium of claim 8, wherein the campaign stage is an email campaign stage.
 11. The computer-readable medium of claim 8, wherein the campaign stage is a SMS (short message service) message campaign stage.
 12. The computer-readable medium of claim 8, wherein each of the thread boundaries begins with a thread creator stage, each thread creator stage being one of a start event stage, a timer stage, and a campaign activity stage.
 13. The computer-readable medium of claim 8, wherein the unique paths and the thread boundaries are persisted in a normalized form in the database.
 14. The computer-readable medium of claim 8, wherein changing the execution of the plurality of stages further comprises at least one of determining all in-paths to the campaign stage using the database, determining the all in-paths to the campaign stage which execute within a same thread boundary using the database, determining stages executed before the campaign stage using the database, determining whether two given stages are connected using the database, and determining a shortest path by time or a number of stages between the two given stages using the database.
 15. A computer system, comprising: a non-transitory computer accessible storage medium storing thereupon a plurality of instructions; a processor configured to execute at least some of the plurality of instructions to identify a plurality of stages of processing that are performed and consume computing resources including memory and processing cycles to transmit a plurality of electronic communications, reduce consumption of the computing resources to transmit the plurality of electronic communications at least by: identifying a first stage and a second stage within the plurality of stages of processing that are performed to transmit the plurality of electronic communications; identifying a plurality of distinct paths between the first stage and the second stage; determining that the plurality of distinct paths between the first stage and the second stage correspond to a thread boundary that identifies the first stage and the second stage within the plurality of distinct paths as being executable by a common thread on a server computer using the computing resources, the first stage being a filter stage, and the second stage being a campaign stage, merging outputs of the plurality of distinct paths between the first stage and the second stage into a merged group; persisting unique paths for the plurality of stages of processing and thread boundaries in a database on a database server; changing an execution of the plurality of stages at least by accessing at least some of the unique paths and the thread boundaries from a cache remote from the database server, instead of accessing the at least some of the unique paths and the thread boundaries from the database; determining that the filter stage, which filters input data to groups, and the campaign stage are connected by two or more paths within one of the thread boundaries, each of the two or more paths being used to process a respective group of the groups; in response to determining that the filter stage and the campaign stage in the plurality of stages of processing are connected by the two or more paths within the one of the thread boundaries: processing the groups in the two or more paths, merging the groups, which have been processed, into the merged group, and launching the campaign stage in a single launch for the merged group; and executing the single launch to transmit the plurality of electronic communications for the merged group.
 16. The computer system of claim 15, the processor further configured to execute the plurality of instructions to: determine the unique paths for the plurality of stages of processing; and determine the thread boundaries of the plurality of stages.
 17. The computer system of claim 15, wherein the campaign stage includes one of an email campaign stage and a SMS (short message service) message campaign stage. 